package com.gxy.learn.backup.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @description: 通用动态表格VO
 * @author: Gaoxueyong
 * @createDate: 2022/12/20 13:41
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CommonTableHeadr {
    //    属性CODE
    private String code;
    //    属性值 属性描述
    private String desc;
    //    子类 有子类表明是两级表头
    private List<CommonTableHeadr> childs;

    public CommonTableHeadr(String code, String desc){
        this.code = code;
        this.desc = desc;
        this.childs = new ArrayList<>();
    }
}
